package com.yonyou.crm.cum.customer.rmimpl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.yonyou.crm.common.page.entity.Page;
import com.yonyou.crm.cum.customer.entity.CustomerSalesVO;
import com.yonyou.crm.cum.customer.rmitf.ICustomerSalesRmService;
import com.yonyou.crm.cum.customer.service.CustomerSalesBizServiceImpl;

public class CustomerSalesRmServiceImpl implements ICustomerSalesRmService{
	
	@Autowired
	private CustomerSalesBizServiceImpl bizService;
	
	@Override
	public Page<CustomerSalesVO> getList(Page<CustomerSalesVO> page,Map<String, Object> paramMap){
		return bizService.getList(page, paramMap);
	}
	
	@Override
	public CustomerSalesVO getDetail(Long id){
		return bizService.getDetail(id);
	}
	
	@Override
	public CustomerSalesVO insert(CustomerSalesVO customerSale){
		return bizService.insert(customerSale);
	}
	
	@Override
	public CustomerSalesVO update(CustomerSalesVO customerSale){
		return bizService.update(customerSale);
	}
	
	@Override
	public int delete(Long id){
		return bizService.delete(id);
	}
	
	@Override
	public int deleteByIDs(Long[] ids){
		return 0;
	}

	@Override
	public void batchAllocation(String orgIdStr, String cumIdStr,
			String ownerDeptIdStr, String ownerUserIdStr) {
		bizService.batchAllocation(orgIdStr, cumIdStr, ownerDeptIdStr, ownerUserIdStr);
	}
	
}